package com.des1gn.servicea.blockhandle;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.stereotype.Service;

/**
 * @ClassName TestBlockHandle
 * @Description TODO
 * @Author Des1gn
 * @Date 2021/9/29 17:19
 * @Version 1.0
 **/
@Service
public class TestBlockHandle {

    public static String exceptionHandle(String ack,BlockException ex){
        return "已被限流";
    }

    public static String follbackHandle(String ack){
        return "已被降级";
    }

}
